package com.hand.wyc24548;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {
    public static void main(String[] args){
        ApplicationContext act=new ClassPathXmlApplicationContext("applicationContext.xml");
        Person person=act.getBean("person",Person.class);
        person.getHelloMeg().sayHello();
    }
}
